<%@include file="includes/top.jsp"%>
<script type="text/javascript" src="<c:url value="/js/MyInfusion.js" />"></script>
<h1><spring:message code="${pageTitle}" /></h1>
<c:if test="${fn:length(userDetail) eq 0}">
     <div id="msg" class="errors"><p><spring:message code="management.userdetail.service.warn" /></p></div>
 </c:if>

<c:if test="${not empty param.status}">
	<div id="msg" class="success"><spring:message code="management.userDetail.status.${param.status}" arguments="${param.colName}" /></div>
</c:if>

<table id="headerTable" class="headerTable">
	<tr>
		<th class="th1"><spring:message code="management.userdetail.manage.label.colname" /></th>
		<th class="th8 "><spring:message code="management.userdetail.manage.label.collength" /></th>
		<!--<th class="th8 "><spring:message code="management.userdetail.manage.label.coltype" /></th>-->
		<th class="th8 "><spring:message code="management.userdetail.manage.label.colRequired" /></th>
	  <th class="th8 "><spring:message code="management.userdetail.manage.label.label" /></th>
	 	<th class="th8">&nbsp;</th>
	</tr>
</table>

<div id="tableWrapper" class="tableWrapper">
	<table id="scrollTable" class="scrollTable highlight large">
		<tbody>
	       <c:forEach items="${userDetail}" var="userDetail" varStatus="status">
	       <tr id="row${status.index}"${param.id eq userDetail.id ? ' class="added"' : ''}>
	         <td id="${userDetail.colName}" class="td1">${userDetail.colName}</td>
	         <td id="${userDetail.colLength}" class="td8">${userDetail.colLength}</td>
	         <!--<td id="${userDetail.colType}" class="td8">${userDetail.colType}</td>-->
	         <td id="${userDetail.colRequired}" class="td8">${userDetail.colRequired}</td>
	         <td id="${userDetail.label}" class="td8">${userDetail.label}</td>
	         <c:if test="${userDetail.canDelete ne 'false'}">
			         <td class="td8" id="edit${status.index}"><a href="editUserDetail.html?id=${userDetail.id}" class="edit"><spring:message code="management.services.manage.action.edit" /></a></td> 
			         <!--<td class="td8" id="delete${status.index}"></td>-->
			         <!--<td class="td8" id="delete${status.index}"><a href="#" class="del" onclick="swapButtonsForConfirmUserDetail('${status.index}','${userDetail.id}'); return false;"><spring:message code="management.services.manage.action.delete" /></a></td>-->
	         </c:if>
	         <c:if test="${userDetail.canDelete eq 'false'}">
	         	   <td class="td8" id="edit${status.index}"></td>
		         	<!--<td class="td8" id="edit${status.index}"><a href="editUserDetail.html?id=${userDetail.id}" class="edit"><spring:message code="management.services.manage.action.edit" /></a></td>--> 
				      <!--<td class="td8" id="delete${status.index}"></td>-->
			     </c:if>
	         <!--<td class="td2">${fn:length(service.serviceId) < 100 ? service.serviceId : fn:substring(service.serviceId, 0, 100)}</td>
	         <td class="ac td3"><img src="images/${service.enabled}.gif" alt="${service.enabled ? 'Enabled' : 'Disabled'}" /></td>
	         <td class="ac td4"><img src="images/${service.allowedToProxy}.gif" alt="${service.allowedToProxy ? 'Allowed to Proxy' : 'Not Allowed to Proxy'}" /></td>
	         <td class="ac td5"><img src="images/${service.ssoEnabled}.gif" alt="${service.ssoEnabled ? 'SSO Enabled' : 'SSO Disabled'}" /></td>
	         <td class="ac td6"><img src="images/${service.anonymousAccess}.gif" alt="${service.anonymousAccess ? 'Anonyous Access Enabled' : 'Anonyous Access Disabled'}" /></td>
	         <td class="ac td7">${service.usernameAttribute}</td>
	         <td class="ac td8">${service.evaluationOrder}</td>
	         <td class="td9" id="edit${status.index}"><a href="edit.html?id=${service.id}" class="edit"><spring:message code="management.services.manage.action.edit" /></a></td> 
	         <td class="td10" id="delete${status.index}"><a href="#" class="del" onclick="swapButtonsForConfirm('${status.index}','${service.id}'); return false;"><spring:message code="management.services.manage.action.delete" /></a></td>-->
	       </tr>
	       </c:forEach>
		</tbody>
	</table>
</div>
<div class="add"><a href="addUserDetail.html"><span style="text-transform: lowercase;"><spring:message code="addUserDetailView" /></span></a></div>
<%@include file="includes/bottom.jsp" %>
